<template>
	<view class="pages_intelligence"  :style="{paddingTop: `${search.height+search.top+10}px`}">
		<myTabs :title="title" @goBlack="goBlack" :mybackgroundColor="'#fff'"></myTabs>
		<view>
			<u-parse :content="content"></u-parse> 
		</view>
	</view>

</template>

<script>
	import myTabs from "@/components/myTabs/index.vue"
	export default {
		components: {
			
			myTabs
		},
		data() {
			return {
				title: '关于我们',
				content: ''

			}
		},
		onLoad() {
			// #ifndef H5
			let search = uni.getMenuButtonBoundingClientRect()
			this.$store.commit('updataSearch', search);
			// #endif
			this.init();
		},
		computed: {
			search() {
				return this.$store.state.search;
			},

		},
		methods:{
			init() {
				uni.showLoading({
					title: '加载中',
					mask: true
				})
				this.$api.operateInfo({
					site: 'about_me'
				}).then(res => {
					if (res.code == 200) {

						let content = res.data.content;
						this.content = content.replace(/\<img/gi, '<img class="myStyle"');
			uni.hideLoading();
					}
				})
			},
			goBlack(){
				uni.navigateBack();
			}
		}
	}
</script>
<style lang="scss" scoped>
	.pages_intelligence {
		background-color: #F0F0F0;
		min-height: 100vh;
		box-sizing: border-box;
		/deep/.myStyle {
			display: block;
			width: 100%;
		}
		}
</style>
